#pragma once
#include"rbtree.h"

template<class K>
class myset
{
	struct setkeyofT
	{
		const K& operator()(const K& key)
		{
			return key;
		}
	};

	public:
		typedef typename RBTree<K, const K, setkeyofT>::Iterator iterator;

		iterator begin()
		{
			return _t.begin();
		}
		iterator end()
		{
			return _t.end();
		}
		pair< iterator,bool> insert(const K& key)
		{
			return _t.Insert(key);
		}
		iterator find(const K& key)
		{
			return _t.find(key);
		}
	private:
		RBTree<K, const K, setkeyofT> _t;
};